<div>
  <%= label :resource, :category_id,"资源类别"%>
  <br/>
  <%= select :resource,:category_id,@categories%>
</div>
<div>
  <%= label :resource, :name, "名称" %>
  <br/>
  <%= text_field :resource,:name %>
</div>
<div>
  <%= label :resource, :description, "描述" %>
  <br/>
  <%= text_field :resource,:description%>
</div>
<div>
  <%= label :resource, :price,"单价"%>
  <br/>
  <%= text_field :resource,:price %>
</div>
<div>
  <%= label :resource, :quantity, "库存"%>
  <br/>
  <%= text_field :resource,:quantity %>
</div>
